package com.newland.starpos.partner.utils;

import java.time.Clock;
import java.time.LocalDateTime;
import java.util.Date;

public class DateUtils {

    private static final Clock clock = Clock.systemDefaultZone();

    public static Date date(){
        return Date.from(clock.instant());
    }

    public static LocalDateTime now(){
        return LocalDateTime.now();
    }

}
